package com.app.model;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_subsidy_application")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SubsidyApplicationModel {
    @TableId(type = IdType.AUTO)
    private Integer id;  //
    private Integer userId;  //小程序用户表id
    private String userName;//用户名称
    private Integer year;  //年份
    private Integer month;  //月份
    private Integer applicationState;  //补助的申领状态 1待申领2待发放3已发放4已过期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime crtTime;  //
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime  upTime;  //
    private String operator;  //经办人
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Date processingTime;  //经办时间
    private transient Integer subsidyState;
    private transient String ename;
    private transient String pname;
    private transient Integer pStatus;//个人信息的审核状态
    private transient Integer eStatus;//企业信息的审核状态

}
